package com.lanju.entity;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnore;

@Entity
@Table(name = "lj_check_list_item")
public class HouseCheckListItem implements Serializable {

	private static final long serialVersionUID = -1600219019264329257L;

	
	private String itemId;
	private String checkId;
	private String num;
	private String name;
	private String content;
	private String method;
	private String result;
	
	private HouseCheckList houseCheckList;
	
	@Id
	@Column(name="itemId",unique=true,nullable=false)
	public String getItemId() {
		return itemId;
	}
	public void setItemId(String itemId) {
		this.itemId = itemId;
	}
	public String getCheckId() {
		return checkId;
	}
	public void setCheckId(String checkId) {
		this.checkId = checkId;
	}
	public String getNum() {
		return num;
	}
	public void setNum(String num) {
		this.num = num;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getMethod() {
		return method;
	}
	public void setMethod(String method) {
		this.method = method;
	}
	public String getResult() {
		return result;
	}
	public void setResult(String result) {
		this.result = result;
	}
	@JsonIgnore
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="checkId", insertable=false, updatable=false, nullable=false)
	public HouseCheckList getHouseCheckList() {
		return houseCheckList;
	}
	public void setHouseCheckList(HouseCheckList houseCheckList) {
		this.houseCheckList = houseCheckList;
	}



}
